<%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2025/7/18
  Time: 16:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%
    Object obj = session.getAttribute("USER");
    if(obj==null){
        // 没有登陆，跳转到login
        session.setAttribute("ERROR","请登录后访问");
        response.sendRedirect("login.jsp");
    }
%>
<body>
<h3>首页</h3>
<h4>欢迎${USER.nickname}</h4>
<a href="../logout_session">注销</a>
</body>
</html>
